home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / setup / vbnet / 23 web forms and controls / firstwebforms / autopostbackform.aspx < prev    next >
Encoding:
ASP.NET Web Form  |  2002-02-21  |  1.7 KB  |  30 lines

  1. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="AutoPostBackForm.aspx.vb" Inherits="FirstWebForms.WebForm2" smartNavigation="True" errorPage="/xxx.asp" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. <HTML>
  4.     <HEAD>
  5.         <title>WebForm2</title>
  6.         <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
  7.         <meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
  8.         <meta content="JavaScript" name="vs_defaultClientScript">
  9.         <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10.     </HEAD>
  11.     <body>
  12.         <form id="Form1" method="post" runat="server">
  13.             <P>Select a state:
  14.                 <asp:dropdownlist id="ddlStates" runat="server" Width="130px" AutoPostBack="True"></asp:dropdownlist></P>
  15.             <P><asp:label id="Label1" runat="server" Font-Bold="True">Publishers</asp:label></P>
  16.             <P><asp:datagrid id="dgPublishers" runat="server" Width="612px" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" GridLines="Vertical">
  17.                     <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#008A8C"></SelectedItemStyle>
  18.                     <AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle>
  19.                     <ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
  20.                     <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#000084"></HeaderStyle>
  21.                     <FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
  22.                     <PagerStyle HorizontalAlign="Center" ForeColor="Black" BackColor="#999999" Mode="NumericPages"></PagerStyle>
  23.                 </asp:datagrid></P>
  24.             <P>Number of queries so far:
  25.                 <asp:label id="lblCount" runat="server"></asp:label></P>
  26.             <P></P>
  27.         </form>
  28.     </body>
  29. </HTML>
  30.